package model

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ CollegeModel = (*customCollegeModel)(nil)

type (
	// CollegeModel is an interface to be customized, add more methods here,
	// and implement the added methods in customCollegeModel.
	CollegeModel interface {
		collegeModel
	}

	customCollegeModel struct {
		*defaultCollegeModel
	}
)

// NewCollegeModel returns a model for the database table.
func NewCollegeModel(conn sqlx.SqlConn, c cache.CacheConf) CollegeModel {
	return &customCollegeModel{
		defaultCollegeModel: newCollegeModel(conn, c),
	}
}
